package com.quwan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author Hayson
 * @since 2021/7/5 23:44
 */
@Data
@Accessors(chain = true)
@TableName(value = "t_publish_order")
public class TPublishOrder {
    @TableId(value = "auto_id", type = IdType.AUTO)
    private Long autoId;

    @TableField(value = "id")
    private String id;

    @TableField(value = "m_id")
    private Long mId;

    @TableField(value = "coupon_type")
    private String couponType;

    @TableField(value = "coupon_price")
    private BigDecimal couponPrice;

    @TableField(value = "discount_price")
    private BigDecimal discountPrice;

    @TableField(value = "age_limit")
    private String ageLimit;

    @TableField(value = "gender_limit")
    private String genderLimit;

    @TableField(value = "time_limit")
    private String timeLimit;

    /**
     * 地区限制
     */
    @TableField(value = "area_limit")
    private String areaLimit;

    /**
     * 城市
     */
    @TableField(value = "city_name")
    private String cityName;
    /**
     * 代码
     */
    @TableField(value = "city_code")
    private String cityCode;
    /**
     * 简介
     */
    @TableField(value = "other_desc")
    private String otherDesc;

    @TableField(value = "lat")
    private BigDecimal lat;

    @TableField(value = "lng")
    private BigDecimal lng;

    @TableField(value = "sell_count")
    private Integer sellCount;

    @TableField(value = "cancel_count")
    private Integer cancelCount;

    @TableField(value = "price")
    private BigDecimal price;

    @TableField(value = "unit")
    private Integer unit;

    @TableField(value = "category_id")
    private Long categoryId;
    /**
     * 大->小 排序字段
     */
    @TableField(value = "order_num")
    private Integer orderNum;


    /**
     * 0关闭状态
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 0未审核 1 已审核
     */
    @TableField(value = "audit")
    private Integer audit;

    @TableField(value = "add_time")
    private LocalDateTime addTime;
}